<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>排课管理列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script src="/static/js/jquery.min.js" charset="utf-8"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">演示</a>
            <a>
              <cite>导航元素</cite></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form id="form" class="layui-form layui-col-space5" action="/student/list">
                        <div class="layui-card-body ">
                            <div class="layui-inline layui-show-xs-block">

                            </div>
                        </div>
                    </form>
                </div>
                <div class="layui-card-header">
                    <!-- <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
                </div>
                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>
                                <input type="checkbox" name=""  lay-skin="primary">
                            </th>
                            <th >学生号</th>
                            <th >年级</th>
                            <th >类型</th>
                            <th >科目</th>
                            <th >上课日期</th>
                            <th >上课时间段</th>
                            <th >上课老师</th>
                            <th >状态</th>
                            <th >操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="scheduleClass:${pageInfo.list}">
                            <td th:text="${scheduleClass.studentId}"></td>
                            <td th:text="${scheduleClass.classLevel}"></td>
                            <td th:text="${scheduleClass.classType}"></td>
                            <td th:text="${scheduleClass.course}"></td>
                            <td th:text="${scheduleClass.beginClassDate}"></td>
                            <td th:text="${scheduleClass.limitTime}"></td>
                            <td th:text="${scheduleClass.teacherId}"></td>
                            <td class="td-manage">
                                <a title="上课确认"  th:onclick="${'xadmin.open(''编辑'',''/system/user/'+scheduleClass.id+''')'}"  href="javascript:;">
                                    <i class="layui-icon">&#xe642;</i>
                                </a>
                                <a title="作废" th:onclick="${'member_del(''this'','''')'}" href="javascript:;">
                                    <i class="layui-icon">&#xe640;</i>
                                </a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div>
                        <input type="hidden" id="pageTotal" th:value="${pageInfo.total}"/>
                        <input type="hidden" id="pageNum"   th:value="${pageInfo.pageNum}" name = "pageNum"/>
                        <input type="hidden" id="pageSize"   th:value="${pageInfo.pageSize}" name = "pageSize"/>
                        <center id="mylayPage" >
                        </center>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>


    function search(){
        $("#pageNum").val(1);
        $("#form").submit();
    }

    layui.use('laypage', function(){
        var laypage = layui.laypage;
        laypage.render({
            elem: 'mylayPage'
            ,count: $("#pageTotal").val()
            ,limit: $("#pageSize").val()
            ,limits:[5,10,15,20,30]
            ,curr :$("#pageNum").val()
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
            ,
            jump: function(obj, first){

                if(!first){
                    $("#pageNum").val(obj.curr);
                    $("#pageSize").val(obj.limit);
                    $("#form").submit();
                }
            }
        });
    });

</script>

</html>